package com.sgb.kjwl.model.entity;

import com.google.gson.annotations.SerializedName;

import java.text.DecimalFormat;

public class SearchMaterialEntity3 {
    @SerializedName("item_areaName")
    private String cityName;
    @SerializedName("item_storageName")
    private String areaName;

    @SerializedName("id")
    private String id;
    @SerializedName("price")
    private String price;
    @SerializedName("unit")
    private String unit;
    @SerializedName("brandName")
    private String branName;
    @SerializedName(value = "imgUrl", alternate = {"image"})
    private String imgUrl;
    @SerializedName("shopName")
    private String shortName;
    @SerializedName(value = "cartTitle", alternate = {"title"})
    private String title;
    @SerializedName("skuprice")
    private String skuprice;
    @SerializedName("skustr")
    private String skustr;
    @SerializedName("shopId")
    private String shopId;
    @SerializedName("skuid")
    private String skuid;
    @SerializedName("promoteStatus")
    private Integer promoteStatus;
    @SerializedName("promotePrice")
    private String promotePrice;
    @SerializedName("sort")
    private String strengthId;
    @SerializedName("selfSupportTag")    //1是自营  0是非自营
    private String selfSupportTag;
    @SerializedName("companyNo")
    private String companyNo;

    public String getCompanyNo() {
        return companyNo;
    }

    public void setCompanyNo(String companyNo) {
        this.companyNo = companyNo;
    }

    private String storageName; //仓储

    public String getStorageName() {
        return storageName == null ? "" : storageName;
    }

    public void setStorageName(String storageName) {
        this.storageName = storageName;
    }

    public String getDistance() {
        return distance;
    }

    public void setDistance(String distance) {
        this.distance = distance;
    }

    private String distance; //运距

    public String getSelfSupportTag() {
        return selfSupportTag;
    }

    public void setSelfSupportTag(String selfSupportTag) {
        this.selfSupportTag = selfSupportTag;
    }

    public String getStrengthId() {
        return strengthId;
    }

    public void setStrengthId(String strengthId) {
        this.strengthId = strengthId;
    }

    public Integer getPromoteStatus() {
        return promoteStatus;
    }

    public void setPromoteStatus(Integer promoteStatus) {
        this.promoteStatus = promoteStatus;
    }

    public String getPromotePrice() {
        return promotePrice;
    }

    public void setPromotePrice(String promotePrice) {
        this.promotePrice = promotePrice;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getBranName() {
        return branName;
    }

    public void setBranName(String branName) {
        this.branName = branName;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getShortName() {
        return shortName;
    }

    public void setShortName(String shortName) {
        this.shortName = shortName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getPrice() {
//        DecimalFormat df = new DecimalFormat("#0.00");
//        return df.format(Double.parseDouble(price) / 100);
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getSkuprice() {
        return skuprice;
    }

    public void setSkuprice(String skuprice) {
        this.skuprice = skuprice;
    }

    public String getSkustr() {
        return skustr;
    }

    public void setSkustr(String skustr) {
        this.skustr = skustr;
    }

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public String getSkuid() {
        return skuid;
    }

    public void setSkuid(String skuid) {
        this.skuid = skuid;
    }
}
